<template>
  <view>{{ msg}}!!!!!!!!</view>
</template>

<script setup lang="ts">
import { onMounted, ref } from 'vue';

const msg = ref('');

onMounted(() => {
  const options = getCurrentPages().pop() || {};
  console.log(options)
  msg.value = options.options?.msg || '无参数传递';
  uni.showToast({
    title: '加载成功',
    icon: 'success',
    duration: 2000
  });
});
</script>

<style scoped>

</style>
